package com.deyuanyun.pic.settings.service.base;

import com.deyuanyun.pic.settings.domain.base.Code;
import com.github.pagehelper.Page;

import java.util.HashMap;
import java.util.List;

/**
 * Created by xiatao on 2015/8/5.
 */
public interface CodeService {
    int deleteByPrimaryKey(String id);

    int insert(Code record);

    int insertSelective(Code record);

    Code selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Code record);

    int updateByPrimaryKey(Code record);

    Page<Code> selectList(Code record);
    int deleteByIdPath(String idPath);
    Page<Code> selectByIdPath(String idPath);

    public List<Code> loadAll();
    public List<Code> getCodeList(String majorCode);
    /**
     * 
      * 根据MAJOR_CODE值获取 字典数据
      *
      * @param majorCode
      * @return    // 方法返回值的说明
      *
     */
    List<HashMap>selectList(String majorCode);

    /**
     * <p>获取最新的公钥信息,其中minor_code为sn，create_remark为公钥</p>
     * <p>majorCode说明：GW_K_TYPE_B(为获取bs端公钥), GW_K_TYPE_C(为获取cs端公钥)</p>
     * @param
     * @return 
     * @author axiao(xj08.dream@gmail.com)
     * @date 2016-12-23
     */
    public Code getGwNCode(String sn, String majorCode);
}
